from typing import List, Dict, Any
from src.infrastructure.sqlite_repository import SQLiteEmailQARepository
from src.application.service import EmailQAService


def get_email_qa_data(db_path: str, ids: List[int]) -> List[Dict[str, Any]]:
    repository = SQLiteEmailQARepository(db_path)
    service = EmailQAService(repository)
    return service.get_email_qa_by_ids(ids)